﻿Imports TepcelDominio
Imports TepcelDAL

Public Class CategoriaBL
    Private CategoriaDAL As CategoriaDAL
    Public Sub New()
        CategoriaDAL = New CategoriaDAL
    End Sub
    Public Function NuevoCategoria(ByVal categoria As Categoria) As String
        Return CategoriaDAL.NuevoCategoria(categoria)
    End Function

    Public Function GetAllFromCategoria() As List(Of Categoria)
        Return CategoriaDAL.GetAllFromCategoria()
    End Function

    Public Function SearchFromCategoria(ByVal texto As String) As List(Of Categoria)
        Return CategoriaDAL.SearchFromCategoria(texto)
    End Function

    Public Function DeleteCategoria(ByVal codigoCategoria As String) As Boolean
        Return CategoriaDAL.DeleteCategoria(codigoCategoria)
    End Function

End Class
